package cn.dengta.webapp.push.dto;

import java.io.Serializable;

import cn.dengta.context.model.Member;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class UserDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	protected String id;
	protected String nickname;
	protected String avatar;
	/** 性别：1=男；0=女 */
	protected Integer gender;
	protected Integer type;

	public UserDTO() {
	}

	public UserDTO(Long id, String nickname, String avatar) {
		this.id = Member.encode(id);
		this.nickname = nickname;
		this.avatar = avatar;
	}

}
